<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function over(img,imgsrc){
            img.src = imgsrc;
        }
        function out(img,imgsrc){
            img.src = imgsrc;
        }
    </script>
</head>
<body>

    <a href="" onmouseover="over(this,'images/eat.png')" onmouseout="out(this,'images/ganfan.png')">
        <img id="ganfan_id" src="images/ganfan.png" alt="" width="300" height="300" 
         >
    </a>

   
</body>
</html>